package com.zhixiang.xaec.entity.system;


import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.cfg.Comment;

import com.googlecode.jsonplugin.annotations.JSON;
import com.zhixiang.xaec.entity.BaseEntity;

/**
 * 
 * 〈系统操作日志实体类〉
 * @author gt
 * @version 2016年3月9日
 * @see SystemLog
 * @param 
 * @since
 */
@Entity
@Table(name="sys_SystemLog")
@Comment("系统操作日志")
public class SystemLog extends BaseEntity
{
    //
    @Comment("用户账号")
    @Column(length=50)
    protected String userId;
    
    @Comment("用户姓名")
    @Column(length=50)
    protected String userName;
    
    @Comment("操作")
    @Column(length=20)
    protected String operation;
    
    @Comment("操作对象")
    @Column(length=100)
    protected String entityName;

    @Comment("内容")
    @Column(length=1024)
    protected String operationDetail;
    
    @Comment("时间")
    @Column(length=50)
    protected Date operationTime;

    public SystemLog()
    {}

    public SystemLog(Long Id)
    {
        setId(Id);
    }
    public String getUserId()
    {
        return userId;
    }

    public void setUserId(String userId)
    {
        this.userId = userId;
    }

    public String getUserName()
    {
        return userName;
    }

    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getOperation()
    {
        return operation;
    }

    public void setOperation(String operation)
    {
        this.operation = operation;
    }

    public String getOperationDetail()
    {
        return operationDetail;
    }

    public void setOperationDetail(String operationDetail)
    {
        this.operationDetail = operationDetail;
    }
    @JSON(format="yyyy-MM-dd HH:mm:ss")
    public Date getOperationTime()
    {
        return operationTime;
    }

    public void setOperationTime(Date operationTime)
    {
        this.operationTime = operationTime;
    }

    public String getEntityName()
    {
        return entityName;
    }

    public void setEntityName(String entityName)
    {
        this.entityName = entityName;
    }



}